package simulaco.dto;

import gminet.infra.dao.SimpleTransferObject;

import java.util.List;

public class ConcursoNivel extends SimpleTransferObject {

    private static final long serialVersionUID = 7604639976907699467L;
    
    private static final byte FUNDAMENTAL_ID = 1;
    private static final byte MEDIO_ID = 2;
    private static final byte SUPERIOR_ID = 3;

    public static final ConcursoNivel FUNDAMENTAL = new ConcursoNivel(FUNDAMENTAL_ID, "Fundamental");
    public static final ConcursoNivel MEDIO = new ConcursoNivel(MEDIO_ID, "Médio");
    public static final ConcursoNivel SUPERIOR = new ConcursoNivel(SUPERIOR_ID, "Superior");

    static {
        addObject(ConcursoNivel.class, FUNDAMENTAL);
        addObject(ConcursoNivel.class, MEDIO);
        addObject(ConcursoNivel.class, SUPERIOR);
    }

    protected ConcursoNivel() {

        this(0, null);
    }

    private ConcursoNivel(int i, String str) {

        super(i, str);
    }

    @SuppressWarnings("unchecked")
    public static List<ConcursoNivel> getList() {

        return (List<ConcursoNivel>) getList(ConcursoNivel.class);
    }

    public static ConcursoNivel getNivelById(int id) {

        return new ConcursoNivel(id, null);
    }

}
